<?php

namespace App\Repositories\Teacher;

use App\Presenters\Teacher\CertificatePresenter;
use App\Repositories\BaseRepository;
use Prettus\Repository\Criteria\RequestCriteria;
use App\Models\Teacher\Certificate;
use App\Validators\Teacher\CertificateValidator;

class CertificateRepositoryEloquent extends BaseRepository implements CertificateRepository{
    public function model(){
        return Certificate::class;
    }

    public function validator(){

        return CertificateValidator::class;
    }


    public function boot(){
        $this->pushCriteria(app(RequestCriteria::class));
    }

    public function presenter(){
        return CertificatePresenter::class;
    }
}
